	
<aside class="sidebar">
            <div id="leftside-navigation" class="nano">
			<?php
				$navs = D("Menu")->getAdminMenus();
				$index = 'index';
				$categorys = getTree($navs,0);
			//	echo "<pre>";print_r(getTree($navs,0));echo "<pre>";
	
			?>
                <ul class="nano-content">
                    <li class="{$index|getActive}">
                        <a href="admin.php"><i class="fa fa-home"></i><span>后台管理</span></a>
                    </li>
            	<volist name="categorys" id="category">
            		<li class="sub-menu {$category.c|getActive}">
            			<a href="<if condition="$category.data eq 'class'">javascript:void(0);  <elseif condition="$category.data neq 'class'"/>{$category|getAdminMenuUrl}<else /></if>"><i class="fa fa-{$category.ico}"></i><span>{$category.name}</span><i class="arrow fa fa-angle-right pull-right"></i></a>
            			
            			<if condition="$category.parentid neq ''">
            				<ul class="nano-content">
            					<volist name="category['parentid']" id="scategory">
            						<li class="sub-menu {$scategory.c|getActive}">
	            					<a href="{$scategory|getAdminMenuUrl}"><i class="fa fa-{$scategory.ico}"></i><span>{$scategory.name}</span><i class="arrow fa fa-angle-right pull-right"></i></a>
            						</li>
            					</volist>
            				</ul>	
            			</if>
            		</li>
            	</volist>

                    <!--<volist name="navs" id="nav">
                    	<li class="sub-menu {$nav.c|getActive}">
	                        <a href="{$nav|getAdminMenuUrl}"><i class="fa fa-cogs"></i><span>{$nav.name}</span><i class="arrow fa fa-angle-right pull-right"></i></a>
	                    </li>
                    </volist>-->
                    
                </ul>
            </div>

        </aside>